import { defineStore } from 'pinia'

// name需要保证唯一性 是一个唯一的id
export const useCounterStore = defineStore('counter', {
	state: () => {
		return {
			count: 800
		}
	},
	actions: {
		increment() {
			this.count++
		},
		decrement() {
			this.count--
		}
	}
})
